package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.BtyPsd;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPsdParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPsdResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuy
 * @since 2021-11-03
 */
public interface BtyPsdService extends IService<BtyPsd> {

    /**
     * 新增
     *
     * @author liuy
     * @Date 2021-11-03
     */
    void add(BtyPsdParam param);

    /**
     * 删除
     *
     * @author liuy
     * @Date 2021-11-03
     */
    void delete(BtyPsdParam param);

    /**
     * 更新
     *
     * @author liuy
     * @Date 2021-11-03
     */
    void update(BtyPsdParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author liuy
     * @Date 2021-11-03
     */
    BtyPsdResult findBySpec(BtyPsdParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuy
     * @Date 2021-11-03
     */
    List<BtyPsdResult> findListBySpec(BtyPsdParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuy
     * @Date 2021-11-03
     */
     LayuiPageInfo findPageBySpec(BtyPsdParam param);

    BigDecimal amountByTypeCode(@Param("paramCondition") BtyPsdParam paramCondition);

    BigDecimal vuserdef4ByTypeCode(@Param("paramCondition") BtyPsdParam paramCondition);

}
